import { IForm, IFormItem } from '@/base-ui/form'

const formItems: IFormItem[] = [
  {
    field: 'name',
    type: 'input',
    label: '用户名',
    placeholder: '请输入用户名'
  },
  {
    field: 'realname',
    type: 'input',
    label: '真实姓名',
    placeholder: '请输入真实姓名'
  },
  {
    field: 'password',
    type: 'input',
    label: '密码',
    placeholder: '请输入密码',
    isHidden: true
  },
  {
    field: 'cellphone',
    type: 'input',
    label: '电话号码',
    placeholder: '请输入电话号码'
  },
  {
    field: 'roleId',
    type: 'select',
    label: '角色',
    placeholder: '请选择角色',
    options: []
  },
  {
    field: 'departmentId',
    type: 'select',
    label: '部门',
    placeholder: '请选择部门'
  }
]

const labelWidth = '100px'
const itemStyle = { padding: '5px 30px' }
const colLayout = {
  span: 24
}

export const modalFormConfig: IForm = {
  formItems: formItems,
  labelWidth: labelWidth,
  itemStyle: itemStyle,
  colLayout: colLayout
}
